package dao

import (
	"zy4/global"
	"zy4/internal/model"
)

func GetGift(id uint) model.Gifts {
	var result model.Gifts
	if err := global.DB.Where("id=?", id).Find(&result).Error; err != nil {
		return model.Gifts{}
	}
	return result
}
